const path = require('path');

function resolve(dir) {
  return path.join(__dirname, dir);
}
const baseUrl = '/';
module.exports = {
  publicPath: process.env.NODE_ENV === 'production' ? '../' : '/',
  productionSourceMap: false,
  chainWebpack: (config) => {
    config.resolve.alias
      .set('@', resolve('/src'))
      .set('components', resolve('/src/components'));
  },
  lintOnSave: false, // 关闭eslint规范
};
